<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录</title>
<script type="text/javascript">
function yanzhen(){
	var na=document.getElementById(name).value;
	var pa=document.getElementById(pawd).value;
	var divname=document.getElementById(dname);
	var divpawd=document.getElementById(dpawd);
	if(na==""){
		divname.innerHTML=("用户名不能为空");
	}
	if(pa==""){
		divpawd.innerHTML=("密码不能为空");
	}
}



</script>
</head>
<iframe src="top.html" frameborder="0" scrolling="no" width="100%"></iframe>
<body>
<center>

<form action="loginAction" method="post"  onSubmit="return yanzhen()">
<table>

<tr>        
<td>用户名</td>
<td><input type="text" name=u.username id="name"  onMouseOut="yanzhen()">
<div id="dname"  style=" float:left"></div> </td>
</tr>


<tr>        
<td>密码</td>
<td><input type="password" name=u.password id="pawd" onMouseOut="yanzhen()">
<div id="dpawd" style=" float:left"></div></td>
</tr>


<tr><td><input type="submit" value="登录"></td> <td><a href="zhuceuser.jsp">新用户注册</a></td></tr>
</table>


</form>

</center>
</body>
</html>